package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-10-09
 */
@TableName("door_device_time")
public class DeviceTime extends Model<DeviceTime> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 所属门禁
     */
    private String device;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 星期
     */
    private Integer week;
    /**
     * 起始时间
     */
    private String begin;
    /**
     * 结束时间
     */
    private String end;
    /**
     * 所属组
     */
    private Integer groupee;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getWeek() {
        return week;
    }

    public void setWeek(Integer week) {
        this.week = week;
    }

    public String getBegin() {
        return begin;
    }

    public void setBegin(String begin) {
        this.begin = begin;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public Integer getGroupee() {
        return groupee;
    }

    public void setGroupee(Integer group) {
        this.groupee = group;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeviceTime{" +
        "id=" + id +
        ", name=" + name +
        ", device=" + device +
        ", status=" + status +
        ", week=" + week +
        ", begin=" + begin +
        ", end=" + end +
        "}";
    }
}
